//-----------------------------------------------------------------------
// <copyright file="Authentication.cs" company="Procure Development">
//     Copyright (c) Procure Development. All rights reserved.
// </copyright>
// <author>Victor Procure</author>
//-----------------------------------------------------------------------

using System;using MongoDB.Bson;using MongoDB.Bson.Serialization.Attributes;

namespace SManagement.Models{
    /// <summary>
    /// An application or service that can authenticate the identity of a person.
    /// The CEDS entity that includes information about an authentication provider,
    /// the login identifier used to authenticate a person's identity, and other
    /// information related to authentication of a person's identity.
    /// </summary>
    public class Authentication
    {
        #region Instance Properties
        [BsonId]
        public ObjectId _id { get; set; }

        public ObjectId OrganizationPersonRoleId { get; set; }

        public string IdentityProviderName { get; set; }

        public string IdentityProviderUri { get; set; }

        public string LoginIdentifier { get; set; }

        public DateTime? StartDate { get; set; }

        public DateTime? EndDate { get; set; }

        #endregion Instance Properties}}